<%-- 
    Document   : index
    Created on : 31/08/2010, 14:07:05
    Author     : Thiago
--%>

<%@page import="autenticacao.Sessao"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%
            if ((request.getParameter("action") != null) && (request.getParameter("action").equals("logout"))) {
                new Sessao(session).removerAtributosSessao();
            }
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Gestor Operacional</title>
    </head>
    <body>
        <jsp:include page = "menu.jsp" flush = "true"/>
        <table align="center" border="0" cellpadding="0" cellspacing="0" width="1003">
            <tr style="background:url(images/top-corners.png) no-repeat; line-height: 7px;" >
                <td>&emsp;</td>
            </tr>
            <tr style="background:url(images/center-line.png) repeat-y;">
                <td>
                    <br/><br/><br/><br/>
                    <%
                                Sessao sessao = new Sessao(session);
                                if (sessao.validarSessao(null)) {
                    %> <center><img src="/Inspecao/images/info-center.jpg"></center> <%
                                } else {
                                    sessao.removerAtributosSessao();
                    %>
                    <form action="Auth" name="form1" method="post">
                        <table align="center" border="1">
                            <tr>
                                <td>
                                    Usuário:
                                </td>
                                <td>
                                    <input type="text" size="10" name="usuario">
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Senha:
                                </td>
                                <td>
                                    <input type="password" size="10" name="senha">
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <input type="submit">
                                </td>
                            </tr>
                        </table>
                    </form>
                    <%                                }
                    %>
                    <br/><br/><br/><br/>
                </td>
            </tr>
            <tr style="background:url(images/botton-corners.png) no-repeat;">
                <td>&emsp;</td>
            </tr>
        </table>
    </body>
</html>
